﻿<UserControl Name="Root"
    x:Class="TreeBuilder.ArrowHead"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="100">
    <Rectangle Name="Rectangle"
               d:DesignWidth="100"
               d:DesignHeight="100">
        <Rectangle.Fill>
            <DrawingBrush x:Name="ArrowBrush" TileMode="None" Viewbox="0,0,100,100" ViewboxUnits="RelativeToBoundingBox"
                      Viewport="0,0,100,100" ViewportUnits="RelativeToBoundingBox">
                <DrawingBrush.Drawing>
                    <GeometryDrawing x:Name="Drawing" Geometry="M0,100 L50,0 L100,100 z" 
                                     Brush="{Binding ElementName=Root, Path=Brush}">
                    </GeometryDrawing>
                </DrawingBrush.Drawing>
            </DrawingBrush>
        </Rectangle.Fill>
    </Rectangle>
</UserControl>
